package com.jqb.webservice.client;

import java.net.MalformedURLException;
import java.net.URL;

import javax.xml.namespace.QName;
import javax.xml.ws.Service;

import com.jqb.webservice.service.MathService;

public class Client01 {
	public static void main(String[] args) throws MalformedURLException {
		URL url = new URL("http://localhost:9999/math?wsdl");
		QName qname = new QName("http://service.webservice.jqb.com/","MathServiceImplService");
		Service service = Service.create(url, qname);
		MathService mathService = service.getPort(MathService.class);
		System.out.println(mathService.add(12, 2));
	}
}
